import wx
from gui.widgets.panel_strategy import StrategyPanel

class LeftNotebook(wx.Notebook):
    def __init__(self, parent):
        super(LeftNotebook, self).__init__(parent, style=wx.NB_BOTTOM)

        # 创建策略管理页面
        self.strategy_panel = StrategyPanel(self)
        self.AddPage(self.strategy_panel, "策略管理")

        # 创建策略回测页面
        self.backtest_panel = wx.Panel(self)
        backtest_label = wx.StaticText(self.backtest_panel, label="策略回测功能")
        backtest_sizer = wx.BoxSizer(wx.VERTICAL)
        backtest_sizer.Add(backtest_label, 0, wx.ALL, 10)
        self.backtest_panel.SetSizer(backtest_sizer)
        self.AddPage(self.backtest_panel, "策略回测")

        # 创建策略配置页面
        self.config_panel = wx.Panel(self)
        config_label = wx.StaticText(self.config_panel, label="策略参数配置")
        config_sizer = wx.BoxSizer(wx.VERTICAL)
        config_sizer.Add(config_label, 0, wx.ALL, 10)
        self.config_panel.SetSizer(config_sizer)
        self.AddPage(self.config_panel, "参数配置")


